package select;


public class Universal extends UniversalRoulette {

	Double rand;
	int k, totalK;

	
	public Universal(int amount){
		rand = Math.random();
		k = 1;
		totalK = amount;
	}

	
	public Double getRand(){
		if(k > totalK){
			k = 1;
			return null;
		}
		return (rand + k++ -1)/totalK;
	}
	
}
